powered by
It calculates the squared correlation between a circular and one or more linear variables.
circlin.cor(theta, x, rads = FALSE)
A matrix with as many rows as linear variables including:
The value of the squared correlation.
The p-value of the zero correlation hypothesis testing.
The circular variable.
The linear variable or a matrix containing many linear variables.
If the circualr variable is in rads, this should be TRUE and FALSE otherwise.
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Giorgos Athineou <gioathineou@gmail.com>.
The squared correlation between a circular and one or more linear variables is calculated.
Mardia, K. V. and Jupp, P. E. (2000). Directional statistics. Chicester: John Wiley & Sons.
circ.cor1, circ.cor2, spml.reg
phi <- rvonmises(50, 2, 20, rads = TRUE) x <- 2 * phi + rnorm(50) y <- matrix(rnorm(50 * 5), ncol = 5) circlin.cor(phi, x, rads = TRUE) circlin.cor(phi, y, rads = TRUE)
Run the code above in your browser using DataLab